﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title></title>
    <script src="../jQueryUI/js/jquery-1.7.1.min.js" type="text/javascript"></script>
</head>
<body>

    <h1>Sou o index, e</h1>
    <h1>Estou dentro de algum frame</h1>
    <h2><a href="#">Chama a função do PARENT</a></h2>
</body>
</html>

<script type="text/javascript">
    $("a").click(function () {
        //var htmlParent = $(top.document);
        //htmlParent.f;
        //$("h1", top.document).text("O_o"); 
        $("#1", top.document).trigger("click");
    });
</script>